{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>用户列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-12">
                    <form name="admin_list_sea" class="form-search" method="post" action="{:url('index')}">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <select class="form-control m-b chosen-select" name="user_type_id" id='user_type_id'>
                                    <option value="0">选择用户类型</option>
                                    {volist name="data.userType" id="vo"}
                                    <option value="{$vo.id}" {if condition="$vo.id eq $data.type_id"}selected{/if}>{$vo.name}</option>
                                    {/volist}
                                </select>
                                <input type="text" id="key" class="form-control" name="key" value="{$data.key}" placeholder="输入需查询的用户名或手机号" />

                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button>
                                </span>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th>电话</th>
                                <th>昵称</th>
                                <th>性别</th>
                                <th>年龄</th>
                                <th>qq</th>
                                <th>地址</th>
                                <th>单位名称</th>
                                <th>工作类型</th>
                                <th>工作性质</th>
                                <th>用户类别</th>
                                <th>加入时间</th>
                            </tr>
                        </thead>
                        <tbody id="list-content">
                          {volist name="data.users" id="vo"}
                              <tr class="long-td">
                                  <td>{$vo.id}</td>
                                  <td>{$vo.mobile}</td>
                                  <td>{$vo.username}</td>
                                  <td>
                                  {switch name="vo.sex"}
                                      {case value="1"}男{/case}
                                      {case value="2"}女{/case}
                                  {/switch}
                                  </td>
                                  <td>{neq name="vo.age" value="0"}{$vo.age}{/neq}</td>
                                  <td>{$vo.qq}</td>
                                  <td>{$vo.address}</td>
                                  <td>{$vo.company}</td>
                                  <td>
                                  {switch name="vo.job_type"}
                                      {case value="1"}公司{/case}
                                      {case value="2"}工作室{/case}
                                      {case value="3"}自由职业{/case}
                                  {/switch}
                                  </td>
                                  <td>
                                  {switch name="vo.job_nature"}
                                      {case value="1"}全职{/case}
                                      {case value="2"}兼职{/case}
                                  {/switch}
                                  </td>
                                  <td>{$vo.user_type.name}</td>
                                  <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                              </tr>
                          {/volist}
                        </tbody>
                    </table>
                    {$data.page}
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

{include file="public/footer" /}

<script type="text/javascript">


</script>
</body>
</html>
